package susebs.pb.travel_server.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * 评论表(Comments)实体类
 *
 * @author makejava
 * @since 2024-02-05 08:02:26
 */
public class Comments implements Serializable {
    private static final long serialVersionUID = -23911737101781847L;

    private Long commentId;

    private Long userId;
    /**
     * 区分评论针对的是哪一个实体，1景点，2套餐，3酒店
     */
    private Integer relatedEntityType;
    /**
     * 关联实体的id
     */
    private Long relatedEntityId;
    /**
     * 评论
     */
    private String comment;
    /**
     * 评价时间
     */
    private Date commentTime;
    /**
     * 消费评分
     */
    private Double commentRating;

}
